<template>
  <div>
    <mtHeader
      fixed
      title=""
      style="background: inherit;z-index:9"
    >
        <div class="header-left iconfont" slot="left" @click="$router.back(-1)">&#xe623;</div>
        
    </mtHeader>
    <div class="topic-con">
      <div class="topic-one">
        <div class="topic-one-left">
          <img :src=topicImg />
        </div>
        <div class="topic-one-right">
          <div class="topic-one-right-tit">{{topicTit}}</div>
          <div class="topic-one-right-content">{{topicContent}}</div>
        </div>
      </div>
      <div class="topic-two">+&nbsp;&nbsp;加入圈子</div>
      <div class="topic-three">
        <div class="topic-three-one">
          <p class="topic-three-one-left">已有{{topicNum}}人加入圈子</p>
          <span class="iconfont right">&#xe606;</span>
        </div>
        <div class="line-h"></div>
        <div class="topic-three-two">
          <div class="topic-three-item" v-for="(item,index) in joinList" :key="index">
            <img :src=item.headImg />
          </div>
        </div>
      </div>
    </div>
    <div class="container">
        <div class="dynamic">
          <p class="dynamic-left">动态</p>
          <div class="default-sort">
            <div class="default-sort-cn1"></div>
            <p class="default-sort-cn2">默认排序</p>
          </div>
        </div>
        <post :postList="postList"></post>
    </div>
  </div>
</template>
<script>
import { Header} from "mint-ui";
import post from '../../components/post'
export default {
  name: "myPost",
  components: {
    mtHeader: Header,
    post,
  },
  data: function() {
    return {
      topicImg:'../../../static/imgs/guojimilan.png',
      joinList:[{headImg:'../../../static/img/header.png'},{headImg:'../../../static/img/header.png'},{headImg:'../../../static/img/header.png'},
                {headImg:'../../../static/img/header.png'},{headImg:'../../../static/img/header.png'},{headImg:'../../../static/img/header.png'},
                {headImg:'../../../static/img/header.png'}
      ],
      topicTit:'国际米兰',
      topicContent:'文字介绍文字介绍文字介绍文字介绍文字介绍文字介绍文字介绍文字介绍文字介绍文字介绍',
      topicNum:'20123',
      postList:[
        {userName:'刘希依9527',date:'十分钟前',imgUrl:'/static/img/header.png',
        content:'今天天气真好，国际米兰又想要赢球，但是没什么机会啊，得加油，努努力多赢点球好吃饭去，内容不限制字数，但是最多显示三行，多少字符开发定今天天气真好，国际米兰又想要赢球，但是没什么机会啊，得加油，努努力多赢点球好吃饭去，内容不限制字数，但是最多显示三行，多少字符开发定',
        
        },
        {userName:'刘希依9527',date:'十分钟前',imgUrl:'/static/img/header.png',
        content:'今天天气真好，国际米兰又想要赢球，但是没什么机会啊，得加油，努努力多赢点球好吃饭去，内容不限制字数，但是最多显示三行，多少字符开发定今天天气真好，国际米兰又想要赢球，但是没什么机会啊，得加油，努努力多赢点球好吃饭去，内容不限制字数，但是最多显示三行，多少字符开发定',
        videoUrl:'dff',zanNum:177,plNum:103,fxNum:17,title:'国际米兰'
        },
        {userName:'刘希依9527',date:'十分钟前',imgUrl:'/static/img/header.png',
        content:'今天天气真好，国际米兰又想要赢球，但是没什么机会啊，得加油，努努力多赢点球好吃饭去，内容不限制字数，但是最多显示三行，多少字符开发定今天天气真好，国际米兰又想要赢球，但是没什么机会啊，得加油，努努力多赢点球好吃饭去，内容不限制字数，但是最多显示三行，多少字符开发定',
        videoUrl:'dd',zanNum:177,plNum:103,fxNum:17
        }
      ]
    };
  },
  methods: {
    btnEmpty() {
      
    },
    
  }
};
</script>
<style lang="less" scoped>
img{
  width: 100%;
  height: 100%;
}
.header-left {
  font-size: 0.5rem;
}
.container{
    position: relative;
    margin-top: 6.5rem;
    width: 100%;
    .dynamic{
      height: .54rem;
      line-height: .54rem;
      padding: 0 .4rem 0 .24rem;
      display: flex;
      justify-content: space-between;
      .dynamic-left{
        font-size: .28rem;
        color:#4F4F4F;
        font-weight: 600;
      }
      .default-sort{
        font-size: .24rem;
        color:#4F4F4F;
        display: flex;
        align-items: center;
        .default-sort-cn1{
          width: .08rem;
          height: .24rem;
          background:url('../../../static/img/paixu.png') no-repeat;
          background-size:.08rem .24rem;
          margin-right: .08rem;
        }
        .default-sort-cn2{

        }
      }
    }
}
.topic-con{
  z-index: 0;
  position: absolute;
  top:0;
  left: 0;
  width: 100%;
  height: 6.5rem;
  background:url('../../../static/img/topic_bj.png') no-repeat;
  background-size:100% 6.5rem;
  .topic-one{
    margin:1rem .56rem 0;
    display: flex;
    align-items: center;
    .topic-one-left{
      width: 1.8rem;
      height: 1.8rem;
      border-radius: 50%;
      overflow: hidden;
    }
    .topic-one-right{
      margin-left: .4rem;
      color:#ffffff;
      width: 3.9rem;
      .topic-one-right-tit{
        font-size: .36rem;
        font-weight: 600;
      }
      .topic-one-right-content{
        font-size: .28rem;
        margin-top: .24rem;
      }
    }
  }
  .topic-two{
    background: linear-gradient(0deg, #76BF42, #B1D46D);
    color: #ffffff;
    font-size: 0.32rem;
    font-weight: 600;
    margin: .3rem .56rem;
    height: .7rem;
    line-height: .7rem;
    text-align: center;
  }
  .topic-three{
    margin: 0 .56rem;
    background: #fff;
    .topic-three-one{
      padding: 0 .2rem;
      color:#828181;
      font-size: .28rem;
      display: flex;
      justify-content: space-between;
      height: .6rem;
      line-height: .6rem;
      .right{
        color:#848282;
        font-size: .3rem;
      }
    }
    .line-h{
      width: 100%;
      height: 1px;
      background: #DFE1E3;
    }
    .topic-three-two{
      padding: .16rem .3rem;
      overflow-x: auto;
      overflow-y: hidden;
      display: flex;
      display: -webkit-box;
      align-items: center;
      .topic-three-item{
        width: .86rem;
        height: .86rem;
        border-radius: 50%;
        overflow: hidden;
        margin-right: .14rem;
      }
    }
  }
    
}
</style>